package edu.sdjzu.exam.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import java.util.List;

@Data
public class ExamAnswerSubmitDTO {
    @NotNull(message = "考试ID不能为空")
    private Long examId;
    
    private Long sessionId; // 考试会话ID
    
    @NotNull(message = "答案列表不能为空")
    private List<AnswerDTO> answers;
    
    @Data
    public static class AnswerDTO {
        @NotNull(message = "题目ID不能为空")
        private Long questionId;
        
        private String answerContent; // 答案内容
        private String filePath; // 文件路径（用于文件上传题）
        private Boolean isDraft; // 是否为草稿
    }
} 